<div class="am-cf am-padding-xs">
	<div class="am-fl am-cf">
		<strong class="am-text-primary am-text-lg">zuul动态路由配置管理</strong> / <small>首页</small>
	</div>
</div>
<ul class="am-avg-sm-1 am-avg-md-6 am-margin-xs am-padding-xs am-text-center admin-content-list ">
	<li>
		<a href="javascript:void(0);" class="am-text-success">
			<span class="am-icon-btn am-icon-user"></span><br />
			DB路由配置总数<br />
			<span id="db" class="countView"></span>
		</a>
	</li>
	<li>
		<a href="javascript:void(0);" class="am-text-warning">
			<span class="am-icon-btn am-icon-briefcase"></span><br />
			REDIS路由配置总数<br />
			<span id="redis" class="countView"></span>
		</a>
	</li>
	<li>
		<a href="javascript:void(0);" class="am-text-danger">
			<span class="am-icon-btn am-icon-recycle"></span><br />
			ZK路由配置总数<br />
			<span id="zk" class="countView"></span>
		</a>
	</li>
	<li>
		<a href="javascript:void(0);" class="am-text-success">
			<span class="am-icon-btn am-icon-user"></span><br />
			DB路由规则总数<br />
			<span id="dbRule" class="countView"></span>
		</a>
	</li>
	<li>
		<a href="javascript:void(0);" class="am-text-warning">
			<span class="am-icon-btn am-icon-briefcase"></span><br />
			REDIS路由规则总数<br />
			<span id="redisRule" class="countView"></span>
		</a>
	</li>
	<li>
		<a href="javascript:void(0);" class="am-text-danger">
			<span class="am-icon-btn am-icon-recycle"></span><br />
			ZK路由规则总数<br />
			<span id="zkRule" class="countView"></span>
		</a>
	</li>
</ul>
<div class="am-g">
	<div class="am-u-md-12 am-padding-xs">
		<div class="am-panel am-panel-default">
			<div class="am-panel-hd am-cf" data-am-collapse="{target: '#collapse-panel-4'}">
				消息<span class="am-icon-chevron-down am-fr"></span>
			</div>
			<div id="collapse-panel-4" class="am-panel-bd am-collapse am-in">
				<ul class="am-list admin-content-task">
					<li>
						<div class="admin-task-meta">2017-05-12 17:35:23 admin</div>
						<div class="admin-task-bd">v1.0.0-SNAPSHOT版本</div>
					</li>
				</ul>
			</div>
		</div>
	</div>
</div>
<script>
(function(){
	$(function(){
		$.ajax({
			url: '/route/count',
			type: 'get',
			dataType: 'json',
			success: function(data){
				$('.countView').each(function(){
					$(this).text(data[$(this).attr('id')] || '暂不支持');
				});
			}
		});
	});
})();
</script>